package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**         用车可开票信息
 * Created by Administrator on 2018/7/6.
 */

public class CarReceiptableInfo extends BaseModel<CarReceiptableInfo> {

    /** 车辆订单ID*/
    public String car_order_id;
    /** 车辆订单编号*/
    public String car_order_no;
    /** 车辆订单费用*/
    public String total_amount_format;
    /** 车辆订单时间*/
    public String order_time_format;
    @Override
    public CarReceiptableInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            car_order_id = jsonObject.optString("car_order_id");
            car_order_no = jsonObject.optString("car_order_no");
            total_amount_format = jsonObject.optString("total_amount_format");
            order_time_format = jsonObject.optString("order_time_format");
            return this;
        }
        return null;
    }

    @Override
    public String toString() {
        return "{" +
                "car_order_id='" + car_order_id + '\'' +
                ", car_order_no='" + car_order_no + '\'' +
                ", total_amount_format='" + total_amount_format + '\'' +
                ", order_time_format='" + order_time_format + '\'' +
                '}';
    }
}
